Refactor workspace into multiple crates and update documentation#30
Merged
Conversation
refactor: create workspace with agit-core library crate 将原 src/core/、src/config/、src/utils/ 迁移至 agit-core 库 crate。 - 扁平化模块层级(不再嵌套 crate::core::) - 约 20 项 pub(crate) → pub 提升可见性 - resolve_llm_provider 改为 pub 供 agit-ai 使用 - 新增 Index/Tree 的 Default trait 实现 Co-Authored-By: Claude <noreply@anthropic.com> @
refactor: create agit-cli binary crate with command dispatch 将 CLI 层迁移至 agit-cli 二进制 crate。 - cli/mod.rs: clap derive, 29 子命令 - commands/: 29 个命令实现,导入路径改为 agit_core:: - ai/mod.rs: AI 模式开关 + #[cfg(feature = "ai")] re-export agit-ai - output/mod.rs: JSON/YAML/color 输出 - main.rs: 移除 mod core/config/utils,改用 use agit_core::config Co-Authored-By: Claude <noreply@anthropic.com> @
docs: update documentation for workspace multi-crate structure 更新项目文档反映 workspace 拆分: - CLAUDE.md: workspace 架构图、新构建命令、三 crate 模块路径 - README.md / README-zh_CN.md: Build from Source 和 Project Structure - docs/ARCHITECTURE.md: 目录结构、技术栈、版本号 0.4.1→0.14.0 - CONTRIBUTING.md: 项目结构、构建命令 - CHANGELOG.md: 新增 v0.14.0 条目 - TODO.md: Phase 10 workspace 拆分记录 Co-Authored-By: Claude <noreply@anthropic.com> @
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.